package com.common.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class User {
	@TableId(type=IdType.AUTO)
	private Long id;
	
	private String email;
	
	private String phone;
	
	private String name;
	
	private String passwd;

	@TableField(exist = false)
	private String confirmPasswd;
	
	private Integer type;//普通用户1，经纪人2
	
	private Date   createTime;
	
	private Integer enable;
	
	private String  avatar;
	@TableField(exist = false)
	private MultipartFile avatarFile;
	@TableField(exist = false)
	private String newPassword;

	@TableField(exist = false)
	private String key;
	@TableField(exist = false)
	private Long   agencyId;
	@TableField(exist = false)
	private String aboutme;
	@TableField(exist = false)
	private String agencyName;

	
}
